package com.lv.jie.controller;

import com.lv.jie.service.HotService;
import com.lv.jie.utils.JsonResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 24694
 */
@RestController
@RequestMapping("/hot")
public class HotController {
    @Resource
    HotService hotService;

    @ApiOperation("给视频点赞")
    @GetMapping("/likeAddOne")
    public JsonResult likeAddOne(Integer hotId, String token){
        return hotService.likeAddOne(hotId, token);
    }
}
